home *** CD-ROM | disk | FTP | other *** search
/ Resource Library: Multimedia / Resource Library: Multimedia.iso / maestro / source / quotemkr / quotmkr_.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-06-15  |  49.9 KB  |  1,842 lines

  1. /*
  2.  * QuoteMaker_ui.c - User interface object initialization functions.
  3.  * This file was generated by `gxv' from `QuoteMaker.G'.
  4.  * DO NOT EDIT BY HAND.
  5.  */
  6.  
  7. #include <stdio.h>
  8. #include <sys/param.h>
  9. #include <sys/types.h>
  10. #include <xview/xview.h>
  11. #include <xview/canvas.h>
  12. #include <xview/panel.h>
  13. #include <xview/scrollbar.h>
  14. #include <xview/svrimage.h>
  15. #include <xview/termsw.h>
  16. #include <xview/text.h>
  17. #include <xview/tty.h>
  18. #include <xview/xv_xrect.h>
  19. #include <gcm.h>
  20. #include "QuoteMaker_ui.h"
  21.  
  22. /*
  23.  * Create object `fileMenu' in the specified instance.
  24.  */
  25. Xv_opaque
  26. QuoteMaker_fileMenu_create(caddr_t ip, Xv_opaque owner)
  27. {
  28.     extern Menu_item    ShowOpenEditListPopup(Menu_item, Menu_generate);
  29.     extern Menu_item    SaveEditListHandler(Menu_item, Menu_generate);
  30.     extern Menu_item    SaveEditListAsHandler(Menu_item, Menu_generate);
  31.     extern Menu_item    NewDocumentToAnnotateHandler(Menu_item, Menu_generate);
  32.     extern Menu_item    Info(Menu_item, Menu_generate);
  33.     extern Menu_item    Quit(Menu_item, Menu_generate);
  34.     Xv_opaque    obj;
  35.     
  36.     obj = xv_create(XV_NULL, MENU_COMMAND_MENU,
  37.         XV_KEY_DATA, INSTANCE, ip,
  38.         MENU_TITLE_ITEM, "Document",
  39.         MENU_ITEM,
  40.             XV_KEY_DATA, INSTANCE, ip,
  41.             MENU_STRING, "Open Edit List...",
  42.             MENU_GEN_PROC, ShowOpenEditListPopup,
  43.             NULL,
  44.         MENU_ITEM,
  45.             XV_KEY_DATA, INSTANCE, ip,
  46.             MENU_STRING, "Save Edit List...",
  47.             MENU_GEN_PROC, SaveEditListHandler,
  48.             NULL,
  49.         MENU_ITEM,
  50.             XV_KEY_DATA, INSTANCE, ip,
  51.             MENU_STRING, "Save Edit List As...",
  52.             MENU_GEN_PROC, SaveEditListAsHandler,
  53.             NULL,
  54.         MENU_ITEM,
  55.             XV_KEY_DATA, INSTANCE, ip,
  56.             MENU_STRING, "New document to annotate...",
  57.             MENU_GEN_PROC, NewDocumentToAnnotateHandler,
  58.             NULL,
  59.         MENU_ITEM,
  60.             XV_KEY_DATA, INSTANCE, ip,
  61.             MENU_STRING, "Info about QuoteMaker...",
  62.             MENU_GEN_PROC, Info,
  63.             NULL,
  64.         MENU_ITEM,
  65.             XV_KEY_DATA, INSTANCE, ip,
  66.             MENU_STRING, "Quit",
  67.             MENU_GEN_PROC, Quit,
  68.             NULL,
  69.         MENU_GEN_PIN_WINDOW, owner, "Document",
  70.         NULL);
  71.     return obj;
  72. }
  73.  
  74. /*
  75.  * Create object `OptionsMenu' in the specified instance.
  76.  */
  77. Xv_opaque
  78. QuoteMaker_OptionsMenu_create(caddr_t ip, Xv_opaque owner)
  79. {
  80.     extern Menu_item    ShowTextWindowHandler(Menu_item, Menu_generate);
  81.     extern Menu_item    ShowQuoteWindowSpecificationsPanelHandler(Menu_item, Menu_generate);
  82.     Xv_opaque    obj;
  83.     
  84.     obj = xv_create(XV_NULL, MENU_COMMAND_MENU,
  85.         XV_KEY_DATA, INSTANCE, ip,
  86.         MENU_ITEM,
  87.             XV_KEY_DATA, INSTANCE, ip,
  88.             MENU_STRING, "Show Text Window",
  89.             MENU_GEN_PROC, ShowTextWindowHandler,
  90.             NULL,
  91.         MENU_ITEM,
  92.             XV_KEY_DATA, INSTANCE, ip,
  93.             MENU_STRING, "Quote Window Options ...",
  94.             MENU_GEN_PROC, ShowQuoteWindowSpecificationsPanelHandler,
  95.             NULL,
  96.         MENU_GEN_PIN_WINDOW, owner, "",
  97.         NULL);
  98.     return obj;
  99. }
  100.  
  101. /*
  102.  * Initialize an instance of object `baseWindow'.
  103.  */
  104. QuoteMaker_baseWindow_objects *
  105. QuoteMaker_baseWindow_objects_initialize(QuoteMaker_baseWindow_objects *ip, Xv_opaque owner)
  106. {
  107.     if (!ip && !(ip = (QuoteMaker_baseWindow_objects *) calloc(1, sizeof (QuoteMaker_baseWindow_objects))))
  108.         return (QuoteMaker_baseWindow_objects *) NULL;
  109.     if (!ip->baseWindow)
  110.         ip->baseWindow = QuoteMaker_baseWindow_baseWindow_create(ip, owner);
  111.     if (!ip->editListControlPanel)
  112.         ip->editListControlPanel = QuoteMaker_baseWindow_editListControlPanel_create(ip, ip->baseWindow);
  113.     if (!ip->fileMenuButton)
  114.         ip->fileMenuButton = QuoteMaker_baseWindow_fileMenuButton_create(ip, ip->editListControlPanel);
  115.     if (!ip->OptionsButton)
  116.         ip->OptionsButton = QuoteMaker_baseWindow_OptionsButton_create(ip, ip->editListControlPanel);
  117.     if (!ip->docLabel)
  118.         ip->docLabel = QuoteMaker_baseWindow_docLabel_create(ip, ip->editListControlPanel);
  119.     if (!ip->docNameLabel)
  120.         ip->docNameLabel = QuoteMaker_baseWindow_docNameLabel_create(ip, ip->editListControlPanel);
  121.     if (!ip->editListLabel)
  122.         ip->editListLabel = QuoteMaker_baseWindow_editListLabel_create(ip, ip->editListControlPanel);
  123.     if (!ip->editListNameLabel)
  124.         ip->editListNameLabel = QuoteMaker_baseWindow_editListNameLabel_create(ip, ip->editListControlPanel);
  125.     if (!ip->editListColumnNamesLabel)
  126.         ip->editListColumnNamesLabel = QuoteMaker_baseWindow_editListColumnNamesLabel_create(ip, ip->editListControlPanel);
  127.     if (!ip->editListScrolledList)
  128.         ip->editListScrolledList = QuoteMaker_baseWindow_editListScrolledList_create(ip, ip->editListControlPanel);
  129.     if (!ip->PreviewControl)
  130.         ip->PreviewControl = QuoteMaker_baseWindow_PreviewControl_create(ip, ip->baseWindow);
  131.     if (!ip->PreviewPanelMessage)
  132.         ip->PreviewPanelMessage = QuoteMaker_baseWindow_PreviewPanelMessage_create(ip, ip->PreviewControl);
  133.     if (!ip->PauseButton)
  134.         ip->PauseButton = QuoteMaker_baseWindow_PauseButton_create(ip, ip->PreviewControl);
  135.     if (!ip->StopButton)
  136.         ip->StopButton = QuoteMaker_baseWindow_StopButton_create(ip, ip->PreviewControl);
  137.     if (!ip->PlayButton)
  138.         ip->PlayButton = QuoteMaker_baseWindow_PlayButton_create(ip, ip->PreviewControl);
  139.     if (!ip->DurationGauge)
  140.         ip->DurationGauge = QuoteMaker_baseWindow_DurationGauge_create(ip, ip->PreviewControl);
  141.     if (!ip->StartTimeMessage)
  142.         ip->StartTimeMessage = QuoteMaker_baseWindow_StartTimeMessage_create(ip, ip->PreviewControl);
  143.     if (!ip->EndTimeMessage)
  144.         ip->EndTimeMessage = QuoteMaker_baseWindow_EndTimeMessage_create(ip, ip->PreviewControl);
  145.     if (!ip->selectionControlPanellist2)
  146.         ip->selectionControlPanellist2 = QuoteMaker_baseWindow_selectionControlPanellist2_create(ip, ip->baseWindow);
  147.     if (!ip->currentSelectionLabel)
  148.         ip->currentSelectionLabel = QuoteMaker_baseWindow_currentSelectionLabel_create(ip, ip->selectionControlPanellist2);
  149.     if (!ip->currentSelectionNumberLabel)
  150.         ip->currentSelectionNumberLabel = QuoteMaker_baseWindow_currentSelectionNumberLabel_create(ip, ip->selectionControlPanellist2);
  151.     if (!ip->numEditsLabel)
  152.         ip->numEditsLabel = QuoteMaker_baseWindow_numEditsLabel_create(ip, ip->selectionControlPanellist2);
  153.     if (!ip->showSelectionButton)
  154.         ip->showSelectionButton = QuoteMaker_baseWindow_showSelectionButton_create(ip, ip->selectionControlPanellist2);
  155.     if (!ip->selectionLabelLabel)
  156.         ip->selectionLabelLabel = QuoteMaker_baseWindow_selectionLabelLabel_create(ip, ip->selectionControlPanellist2);
  157.     if (!ip->selectionLabelField)
  158.         ip->selectionLabelField = QuoteMaker_baseWindow_selectionLabelField_create(ip, ip->selectionControlPanellist2);
  159.     if (!ip->Duration)
  160.         ip->Duration = QuoteMaker_baseWindow_Duration_create(ip, ip->selectionControlPanellist2);
  161.     if (!ip->DurationMinsTextField)
  162.         ip->DurationMinsTextField = QuoteMaker_baseWindow_DurationMinsTextField_create(ip, ip->selectionControlPanellist2);
  163.     if (!ip->Minutes)
  164.         ip->Minutes = QuoteMaker_baseWindow_Minutes_create(ip, ip->selectionControlPanellist2);
  165.     if (!ip->DurationSecsTextField)
  166.         ip->DurationSecsTextField = QuoteMaker_baseWindow_DurationSecsTextField_create(ip, ip->selectionControlPanellist2);
  167.     if (!ip->Seconds)
  168.         ip->Seconds = QuoteMaker_baseWindow_Seconds_create(ip, ip->selectionControlPanellist2);
  169.     if (!ip->ShowQuoteWindowButton)
  170.         ip->ShowQuoteWindowButton = QuoteMaker_baseWindow_ShowQuoteWindowButton_create(ip, ip->selectionControlPanellist2);
  171.     if (!ip->EstimateDurationButton)
  172.         ip->EstimateDurationButton = QuoteMaker_baseWindow_EstimateDurationButton_create(ip, ip->selectionControlPanellist2);
  173.     if (!ip->HideQuoteWindowButton)
  174.         ip->HideQuoteWindowButton = QuoteMaker_baseWindow_HideQuoteWindowButton_create(ip, ip->selectionControlPanellist2);
  175.     if (!ip->HIdeQuoteWindowAfterPlayingEditMessage1)
  176.         ip->HIdeQuoteWindowAfterPlayingEditMessage1 = QuoteMaker_baseWindow_HIdeQuoteWindowAfterPlayingEditMessage1_create(ip, ip->selectionControlPanellist2);
  177.     if (!ip->HideQuoteWindowAfterPlayingEditSetting)
  178.         ip->HideQuoteWindowAfterPlayingEditSetting = QuoteMaker_baseWindow_HideQuoteWindowAfterPlayingEditSetting_create(ip, ip->selectionControlPanellist2);
  179.     if (!ip->IconifyQuoteWindowButton)
  180.         ip->IconifyQuoteWindowButton = QuoteMaker_baseWindow_IconifyQuoteWindowButton_create(ip, ip->selectionControlPanellist2);
  181.     if (!ip->HideQuoteWindowAfterPlayingEditMessage2)
  182.         ip->HideQuoteWindowAfterPlayingEditMessage2 = QuoteMaker_baseWindow_HideQuoteWindowAfterPlayingEditMessage2_create(ip, ip->selectionControlPanellist2);
  183.     if (!ip->addButton)
  184.         ip->addButton = QuoteMaker_baseWindow_addButton_create(ip, ip->selectionControlPanellist2);
  185.     if (!ip->modifyButton)
  186.         ip->modifyButton = QuoteMaker_baseWindow_modifyButton_create(ip, ip->selectionControlPanellist2);
  187.     if (!ip->deleteButton)
  188.         ip->deleteButton = QuoteMaker_baseWindow_deleteButton_create(ip, ip->selectionControlPanellist2);
  189.     if (!ip->deleteAllButton)
  190.         ip->deleteAllButton = QuoteMaker_baseWindow_deleteAllButton_create(ip, ip->selectionControlPanellist2);
  191.     return ip;
  192. }
  193.  
  194. /*
  195.  * Create object `baseWindow' in the specified instance.
  196.  */
  197. Xv_opaque
  198. QuoteMaker_baseWindow_baseWindow_create(QuoteMaker_baseWindow_objects *ip, Xv_opaque owner)
  199. {
  200.     Xv_opaque    obj;
  201.     Xv_opaque        baseWindow_image;
  202.     static unsigned short    baseWindow_bits[] = {
  203. #include "./icons/QuoteMaker.icon"
  204.     };
  205.     
  206.     baseWindow_image = xv_create(XV_NULL, SERVER_IMAGE,
  207.         SERVER_IMAGE_DEPTH, 1,
  208.         SERVER_IMAGE_BITS, baseWindow_bits,
  209.         XV_WIDTH, 64,
  210.         XV_HEIGHT, 64,
  211.         NULL);
  212.     obj = xv_create(owner, FRAME,
  213.         XV_KEY_DATA, INSTANCE, ip,
  214.         XV_WIDTH, 501,
  215.         XV_HEIGHT, 665,
  216.         XV_LABEL, "QuoteMaker",
  217.         FRAME_SHOW_FOOTER, TRUE,
  218.         FRAME_SHOW_RESIZE_CORNER, TRUE,
  219.         FRAME_ICON, xv_create(XV_NULL, ICON,
  220.             ICON_IMAGE, baseWindow_image,
  221.             NULL),
  222.         NULL);
  223.     gcm_initialize_colors(obj, "light gray", NULL);
  224.     return obj;
  225. }
  226.  
  227. /*
  228.  * Create object `editListControlPanel' in the specified instance.
  229.  */
  230. Xv_opaque
  231. QuoteMaker_baseWindow_editListControlPanel_create(QuoteMaker_baseWindow_objects *ip, Xv_opaque owner)
  232. {
  233.     Xv_opaque    obj;
  234.     
  235.     obj = xv_create(owner, PANEL,
  236.         XV_KEY_DATA, INSTANCE, ip,
  237.         XV_X, 14,
  238.         XV_Y, 16,
  239.         XV_WIDTH, 471,
  240.         XV_HEIGHT, 298,
  241.         WIN_BORDER, TRUE,
  242.         NULL);
  243.     gcm_initialize_colors(obj, "Light Gray", NULL);
  244.     return obj;
  245. }
  246.  
  247. /*
  248.  * Create object `fileMenuButton' in the specified instance.
  249.  */
  250. Xv_opaque
  251. QuoteMaker_baseWindow_fileMenuButton_create(QuoteMaker_baseWindow_objects *ip, Xv_opaque owner)
  252. {
  253.     Xv_opaque    obj;
  254.     
  255.     obj = xv_create(owner, PANEL_BUTTON,
  256.         XV_KEY_DATA, INSTANCE, ip,
  257.         XV_X, 29,
  258.         XV_Y, 14,
  259.         PANEL_LABEL_STRING, "Document",
  260.         PANEL_ITEM_MENU, QuoteMaker_fileMenu_create((caddr_t) ip, ip->baseWindow),
  261.         NULL);
  262.     return obj;
  263. }
  264.  
  265. /*
  266.  * Create object `OptionsButton' in the specified instance.
  267.  */
  268. Xv_opaque
  269. QuoteMaker_baseWindow_OptionsButton_create(QuoteMaker_baseWindow_objects *ip, Xv_opaque owner)
  270. {
  271.     Xv_opaque    obj;
  272.     
  273.     obj = xv_create(owner, PANEL_BUTTON,
  274.         XV_KEY_DATA, INSTANCE, ip,
  275.         XV_X, 150,
  276.         XV_Y, 14,
  277.         PANEL_LABEL_STRING, "Options",
  278.         PANEL_ITEM_MENU, QuoteMaker_OptionsMenu_create((caddr_t) ip, ip->baseWindow),
  279.         NULL);
  280.     return obj;
  281. }
  282.  
  283. /*
  284.  * Create object `docLabel' in the specified instance.
  285.  */
  286. Xv_opaque
  287. QuoteMaker_baseWindow_docLabel_create(QuoteMaker_baseWindow_objects *ip, Xv_opaque owner)
  288. {
  289.     Xv_opaque    obj;
  290.     
  291.     obj = xv_create(owner, PANEL_MESSAGE,
  292.         XV_KEY_DATA, INSTANCE, ip,
  293.         XV_X, 30,
  294.         XV_Y, 43,
  295.         PANEL_ITEM_COLOR, gcm_color_index("black"),
  296.         PANEL_LABEL_STRING, "Source Text :",
  297.         PANEL_LABEL_BOLD, TRUE,
  298.         NULL);
  299.     return obj;
  300. }
  301.  
  302. /*
  303.  * Create object `docNameLabel' in the specified instance.
  304.  */
  305. Xv_opaque
  306. QuoteMaker_baseWindow_docNameLabel_create(QuoteMaker_baseWindow_objects *ip, Xv_opaque owner)
  307. {
  308.     Xv_opaque    obj;
  309.     
  310.     obj = xv_create(owner, PANEL_MESSAGE,
  311.         XV_KEY_DATA, INSTANCE, ip,
  312.         XV_X, 124,
  313.         XV_Y, 44,
  314.         PANEL_ITEM_COLOR, gcm_color_index("black"),
  315.         PANEL_LABEL_STRING, "None Loaded",
  316.         PANEL_LABEL_BOLD, TRUE,
  317.         NULL);
  318.     return obj;
  319. }
  320.  
  321. /*
  322.  * Create object `editListLabel' in the specified instance.
  323.  */
  324. Xv_opaque
  325. QuoteMaker_baseWindow_editListLabel_create(QuoteMaker_baseWindow_objects *ip, Xv_opaque owner)
  326. {
  327.     Xv_opaque    obj;
  328.     
  329.     obj = xv_create(owner, PANEL_MESSAGE,
  330.         XV_KEY_DATA, INSTANCE, ip,
  331.         XV_X, 30,
  332.         XV_Y, 63,
  333.         PANEL_ITEM_COLOR, gcm_color_index("black"),
  334.         PANEL_LABEL_STRING, "Edit   List  :",
  335.         PANEL_LABEL_BOLD, TRUE,
  336.         NULL);
  337.     return obj;
  338. }
  339.  
  340. /*
  341.  * Create object `editListNameLabel' in the specified instance.
  342.  */
  343. Xv_opaque
  344. QuoteMaker_baseWindow_editListNameLabel_create(QuoteMaker_baseWindow_objects *ip, Xv_opaque owner)
  345. {
  346.     Xv_opaque    obj;
  347.     
  348.     obj = xv_create(owner, PANEL_MESSAGE,
  349.         XV_KEY_DATA, INSTANCE, ip,
  350.         XV_X, 124,
  351.         XV_Y, 63,
  352.         PANEL_ITEM_COLOR, gcm_color_index("black"),
  353.         PANEL_LABEL_STRING, "Untitled",
  354.         PANEL_LABEL_BOLD, TRUE,
  355.         NULL);
  356.     return obj;
  357. }
  358.  
  359. /*
  360.  * Create object `editListColumnNamesLabel' in the specified instance.
  361.  */
  362. Xv_opaque
  363. QuoteMaker_baseWindow_editListColumnNamesLabel_create(QuoteMaker_baseWindow_objects *ip, Xv_opaque owner)
  364. {
  365.     Xv_opaque    obj;
  366.     
  367.     obj = xv_create(owner, PANEL_MESSAGE,
  368.         XV_KEY_DATA, INSTANCE, ip,
  369.         XV_X, 32,
  370.         XV_Y, 87,
  371.         PANEL_ITEM_COLOR, gcm_color_index("black"),
  372.         PANEL_LABEL_STRING, "Edit #           Label                  Duration      Hide Window After Play",
  373.         PANEL_LABEL_BOLD, FALSE,
  374.         NULL);
  375.     return obj;
  376. }
  377.  
  378. /*
  379.  * Create object `editListScrolledList' in the specified instance.
  380.  */
  381. Xv_opaque
  382. QuoteMaker_baseWindow_editListScrolledList_create(QuoteMaker_baseWindow_objects *ip, Xv_opaque owner)
  383. {
  384.     extern int        DumpEntry(Panel_item, char *, Xv_opaque, Panel_list_op, Event *, int);
  385.     Xv_opaque    obj;
  386.     
  387.     obj = xv_create(owner, PANEL_LIST,
  388.         XV_KEY_DATA, INSTANCE, ip,
  389.         XV_X, 22,
  390.         XV_Y, 111,
  391.         PANEL_LIST_WIDTH, 410,
  392.         PANEL_LIST_DISPLAY_ROWS, 8,
  393.         PANEL_LAYOUT, PANEL_HORIZONTAL,
  394.         PANEL_READ_ONLY, TRUE,
  395.         PANEL_CHOOSE_ONE, TRUE,
  396.         PANEL_CHOOSE_NONE, FALSE,
  397.         PANEL_NOTIFY_PROC, DumpEntry,
  398.         NULL);
  399.     return obj;
  400. }
  401.  
  402. /*
  403.  * Create object `PreviewControl' in the specified instance.
  404.  */
  405. Xv_opaque
  406. QuoteMaker_baseWindow_PreviewControl_create(QuoteMaker_baseWindow_objects *ip, Xv_opaque owner)
  407. {
  408.     Xv_opaque    obj;
  409.     
  410.     obj = xv_create(owner, PANEL,
  411.         XV_KEY_DATA, INSTANCE, ip,
  412.         XV_X, 14,
  413.         XV_Y, 323,
  414.         XV_WIDTH, 471,
  415.         XV_HEIGHT, 83,
  416.         WIN_BORDER, TRUE,
  417.         NULL);
  418.     gcm_initialize_colors(obj, "Light Gray", NULL);
  419.     return obj;
  420. }
  421.  
  422. /*
  423.  * Create object `PreviewPanelMessage' in the specified instance.
  424.  */
  425. Xv_opaque
  426. QuoteMaker_baseWindow_PreviewPanelMessage_create(QuoteMaker_baseWindow_objects *ip, Xv_opaque owner)
  427. {
  428.     Xv_opaque    obj;
  429.     
  430.     obj = xv_create(owner, PANEL_MESSAGE,
  431.         XV_KEY_DATA, INSTANCE, ip,
  432.         XV_X, 196,
  433.         XV_Y, 12,
  434.         PANEL_ITEM_COLOR, gcm_color_index("black"),
  435.         PANEL_LABEL_STRING, "Preview Panel",
  436.         PANEL_LABEL_BOLD, TRUE,
  437.         NULL);
  438.     return obj;
  439. }
  440.  
  441. /*
  442.  * Create object `PauseButton' in the specified instance.
  443.  */
  444. Xv_opaque
  445. QuoteMaker_baseWindow_PauseButton_create(QuoteMaker_baseWindow_objects *ip, Xv_opaque owner)
  446. {
  447.     extern void        PauseButtonHandler(Panel_item, Event *);
  448.     Xv_opaque    obj;
  449.     Xv_opaque        PauseButton_image;
  450.     static unsigned short    PauseButton_bits[] = {
  451. #include "icons/pause.icon"
  452.     };
  453.     
  454.     PauseButton_image = xv_create(XV_NULL, SERVER_IMAGE,
  455.         SERVER_IMAGE_DEPTH, 1,
  456.         SERVER_IMAGE_BITS, PauseButton_bits,
  457.         XV_WIDTH, 32,
  458.         XV_HEIGHT, 32,
  459.         NULL);
  460.     obj = xv_create(owner, PANEL_BUTTON,
  461.         XV_KEY_DATA, INSTANCE, ip,
  462.         XV_X, 28,
  463.         XV_Y, 28,
  464.         PANEL_LABEL_IMAGE, PauseButton_image,
  465.         PANEL_NOTIFY_PROC, PauseButtonHandler,
  466.         NULL);
  467.     return obj;
  468. }
  469.  
  470. /*
  471.  * Create object `StopButton' in the specified instance.
  472.  */
  473. Xv_opaque
  474. QuoteMaker_baseWindow_StopButton_create(QuoteMaker_baseWindow_objects *ip, Xv_opaque owner)
  475. {
  476.     extern void        StopButtonHandler(Panel_item, Event *);
  477.     Xv_opaque    obj;
  478.     Xv_opaque        StopButton_image;
  479.     static unsigned short    StopButton_bits[] = {
  480. #include "icons/stop.icon"
  481.     };
  482.     
  483.     StopButton_image = xv_create(XV_NULL, SERVER_IMAGE,
  484.         SERVER_IMAGE_DEPTH, 1,
  485.         SERVER_IMAGE_BITS, StopButton_bits,
  486.         XV_WIDTH, 32,
  487.         XV_HEIGHT, 32,
  488.         NULL);
  489.     obj = xv_create(owner, PANEL_BUTTON,
  490.         XV_KEY_DATA, INSTANCE, ip,
  491.         XV_X, 92,
  492.         XV_Y, 28,
  493.         PANEL_LABEL_IMAGE, StopButton_image,
  494.         PANEL_NOTIFY_PROC, StopButtonHandler,
  495.         NULL);
  496.     return obj;
  497. }
  498.  
  499. /*
  500.  * Create object `PlayButton' in the specified instance.
  501.  */
  502. Xv_opaque
  503. QuoteMaker_baseWindow_PlayButton_create(QuoteMaker_baseWindow_objects *ip, Xv_opaque owner)
  504. {
  505.     extern void        PlayButtonHandler(Panel_item, Event *);
  506.     Xv_opaque    obj;
  507.     Xv_opaque        PlayButton_image;
  508.     static unsigned short    PlayButton_bits[] = {
  509. #include "icons/play.icon"
  510.     };
  511.     
  512.     PlayButton_image = xv_create(XV_NULL, SERVER_IMAGE,
  513.         SERVER_IMAGE_DEPTH, 1,
  514.         SERVER_IMAGE_BITS, PlayButton_bits,
  515.         XV_WIDTH, 32,
  516.         XV_HEIGHT, 32,
  517.         NULL);
  518.     obj = xv_create(owner, PANEL_BUTTON,
  519.         XV_KEY_DATA, INSTANCE, ip,
  520.         XV_X, 156,
  521.         XV_Y, 28,
  522.         PANEL_LABEL_IMAGE, PlayButton_image,
  523.         PANEL_NOTIFY_PROC, PlayButtonHandler,
  524.         NULL);
  525.     return obj;
  526. }
  527.  
  528. /*
  529.  * Create object `DurationGauge' in the specified instance.
  530.  */
  531. Xv_opaque
  532. QuoteMaker_baseWindow_DurationGauge_create(QuoteMaker_baseWindow_objects *ip, Xv_opaque owner)
  533. {
  534.     Xv_opaque    obj;
  535.     
  536.     obj = xv_create(owner, PANEL_GAUGE,
  537.         XV_KEY_DATA, INSTANCE, ip,
  538.         XV_X, 232,
  539.         XV_Y, 36,
  540.         PANEL_GAUGE_WIDTH, 130,
  541.         PANEL_TICKS, 0,
  542.         PANEL_LABEL_STRING, "Duration :",
  543.         PANEL_LAYOUT, PANEL_HORIZONTAL,
  544.         PANEL_DIRECTION, PANEL_HORIZONTAL,
  545.         PANEL_SHOW_RANGE, FALSE,
  546.         PANEL_MIN_VALUE, 0,
  547.         PANEL_MAX_VALUE, 100,
  548.         PANEL_VALUE, 0,
  549.         NULL);
  550.     return obj;
  551. }
  552.  
  553. /*
  554.  * Create object `StartTimeMessage' in the specified instance.
  555.  */
  556. Xv_opaque
  557. QuoteMaker_baseWindow_StartTimeMessage_create(QuoteMaker_baseWindow_objects *ip, Xv_opaque owner)
  558. {
  559.     Xv_opaque    obj;
  560.     
  561.     obj = xv_create(owner, PANEL_MESSAGE,
  562.         XV_KEY_DATA, INSTANCE, ip,
  563.         XV_X, 304,
  564.         XV_Y, 56,
  565.         PANEL_LABEL_STRING, "0:00",
  566.         PANEL_LABEL_BOLD, FALSE,
  567.         NULL);
  568.     return obj;
  569. }
  570.  
  571. /*
  572.  * Create object `EndTimeMessage' in the specified instance.
  573.  */
  574. Xv_opaque
  575. QuoteMaker_baseWindow_EndTimeMessage_create(QuoteMaker_baseWindow_objects *ip, Xv_opaque owner)
  576. {
  577.     Xv_opaque    obj;
  578.     
  579.     obj = xv_create(owner, PANEL_MESSAGE,
  580.         XV_KEY_DATA, INSTANCE, ip,
  581.         XV_X, 424,
  582.         XV_Y, 56,
  583.         PANEL_LABEL_STRING, "0:00",
  584.         PANEL_LABEL_BOLD, FALSE,
  585.         NULL);
  586.     return obj;
  587. }
  588.  
  589. /*
  590.  * Create object `selectionControlPanellist2' in the specified instance.
  591.  */
  592. Xv_opaque
  593. QuoteMaker_baseWindow_selectionControlPanellist2_create(QuoteMaker_baseWindow_objects *ip, Xv_opaque owner)
  594. {
  595.     Xv_opaque    obj;
  596.     
  597.     obj = xv_create(owner, PANEL,
  598.         XV_KEY_DATA, INSTANCE, ip,
  599.         XV_X, 14,
  600.         XV_Y, 415,
  601.         XV_WIDTH, 471,
  602.         XV_HEIGHT, 230,
  603.         WIN_BORDER, TRUE,
  604.         NULL);
  605.     gcm_initialize_colors(obj, "Light Gray", NULL);
  606.     return obj;
  607. }
  608.  
  609. /*
  610.  * Create object `currentSelectionLabel' in the specified instance.
  611.  */
  612. Xv_opaque
  613. QuoteMaker_baseWindow_currentSelectionLabel_create(QuoteMaker_baseWindow_objects *ip, Xv_opaque owner)
  614. {
  615.     Xv_opaque    obj;
  616.     
  617.     obj = xv_create(owner, PANEL_MESSAGE,
  618.         XV_KEY_DATA, INSTANCE, ip,
  619.         XV_X, 36,
  620.         XV_Y, 16,
  621.         PANEL_ITEM_COLOR, gcm_color_index("black"),
  622.         PANEL_LABEL_STRING, "Current Selection:",
  623.         PANEL_LABEL_BOLD, TRUE,
  624.         NULL);
  625.     return obj;
  626. }
  627.  
  628. /*
  629.  * Create object `currentSelectionNumberLabel' in the specified instance.
  630.  */
  631. Xv_opaque
  632. QuoteMaker_baseWindow_currentSelectionNumberLabel_create(QuoteMaker_baseWindow_objects *ip, Xv_opaque owner)
  633. {
  634.     Xv_opaque    obj;
  635.     
  636.     obj = xv_create(owner, PANEL_MESSAGE,
  637.         XV_KEY_DATA, INSTANCE, ip,
  638.         XV_X, 168,
  639.         XV_Y, 16,
  640.         PANEL_ITEM_COLOR, gcm_color_index("black"),
  641.         PANEL_LABEL_STRING, "New Edit",
  642.         PANEL_LABEL_BOLD, TRUE,
  643.         NULL);
  644.     return obj;
  645. }
  646.  
  647. /*
  648.  * Create object `numEditsLabel' in the specified instance.
  649.  */
  650. Xv_opaque
  651. QuoteMaker_baseWindow_numEditsLabel_create(QuoteMaker_baseWindow_objects *ip, Xv_opaque owner)
  652. {
  653.     Xv_opaque    obj;
  654.     
  655.     obj = xv_create(owner, PANEL_MESSAGE,
  656.         XV_KEY_DATA, INSTANCE, ip,
  657.         XV_X, 292,
  658.         XV_Y, 16,
  659.         PANEL_ITEM_COLOR, gcm_color_index("black"),
  660.         PANEL_LABEL_STRING, "Number of Edits: 0",
  661.         PANEL_LABEL_BOLD, TRUE,
  662.         NULL);
  663.     return obj;
  664. }
  665.  
  666. /*
  667.  * Create object `showSelectionButton' in the specified instance.
  668.  */
  669. Xv_opaque
  670. QuoteMaker_baseWindow_showSelectionButton_create(QuoteMaker_baseWindow_objects *ip, Xv_opaque owner)
  671. {
  672.     extern void        ShowSelection(Panel_item, Event *);
  673.     Xv_opaque    obj;
  674.     
  675.     obj = xv_create(owner, PANEL_BUTTON,
  676.         XV_KEY_DATA, INSTANCE, ip,
  677.         XV_X, 270,
  678.         XV_Y, 51,
  679.         PANEL_LABEL_WIDTH, 167,
  680.         PANEL_LABEL_STRING, "        Set  Selection",
  681.         PANEL_NOTIFY_PROC, ShowSelection,
  682.         NULL);
  683.     return obj;
  684. }
  685.  
  686. /*
  687.  * Create object `selectionLabelLabel' in the specified instance.
  688.  */
  689. Xv_opaque
  690. QuoteMaker_baseWindow_selectionLabelLabel_create(QuoteMaker_baseWindow_objects *ip, Xv_opaque owner)
  691. {
  692.     Xv_opaque    obj;
  693.     
  694.     obj = xv_create(owner, PANEL_MESSAGE,
  695.         XV_KEY_DATA, INSTANCE, ip,
  696.         XV_X, 32,
  697.         XV_Y, 52,
  698.         PANEL_ITEM_COLOR, gcm_color_index("black"),
  699.         PANEL_LABEL_STRING, "Label",
  700.         PANEL_LABEL_BOLD, TRUE,
  701.         NULL);
  702.     return obj;
  703. }
  704.  
  705. /*
  706.  * Create object `selectionLabelField' in the specified instance.
  707.  */
  708. Xv_opaque
  709. QuoteMaker_baseWindow_selectionLabelField_create(QuoteMaker_baseWindow_objects *ip, Xv_opaque owner)
  710. {
  711.     extern Panel_setting    TextFieldAddSelection(Panel_item, Event *);
  712.     Xv_opaque    obj;
  713.     
  714.     obj = xv_create(owner, PANEL_TEXT,
  715.         XV_KEY_DATA, INSTANCE, ip,
  716.         XV_X, 76,
  717.         XV_Y, 52,
  718.         PANEL_VALUE_DISPLAY_LENGTH, 20,
  719.         PANEL_VALUE_STORED_LENGTH, 20,
  720.         PANEL_LAYOUT, PANEL_HORIZONTAL,
  721.         PANEL_READ_ONLY, FALSE,
  722.         PANEL_NOTIFY_PROC, TextFieldAddSelection,
  723.         NULL);
  724.     return obj;
  725. }
  726.  
  727. /*
  728.  * Create object `Duration' in the specified instance.
  729.  */
  730. Xv_opaque
  731. QuoteMaker_baseWindow_Duration_create(QuoteMaker_baseWindow_objects *ip, Xv_opaque owner)
  732. {
  733.     Xv_opaque    obj;
  734.     
  735.     obj = xv_create(owner, PANEL_MESSAGE,
  736.         XV_KEY_DATA, INSTANCE, ip,
  737.         XV_X, 31,
  738.         XV_Y, 75,
  739.         PANEL_ITEM_COLOR, gcm_color_index("black"),
  740.         PANEL_LABEL_STRING, "Duration",
  741.         PANEL_LABEL_BOLD, TRUE,
  742.         NULL);
  743.     return obj;
  744. }
  745.  
  746. /*
  747.  * Create object `DurationMinsTextField' in the specified instance.
  748.  */
  749. Xv_opaque
  750. QuoteMaker_baseWindow_DurationMinsTextField_create(QuoteMaker_baseWindow_objects *ip, Xv_opaque owner)
  751. {
  752.     extern Panel_setting    DurationMinsTextFieldHandler(Panel_item, Event *);
  753.     Xv_opaque    obj;
  754.     
  755.     obj = xv_create(owner, PANEL_TEXT,
  756.         XV_KEY_DATA, INSTANCE, ip,
  757.         XV_X, 107,
  758.         XV_Y, 75,
  759.         PANEL_VALUE_DISPLAY_LENGTH, 3,
  760.         PANEL_VALUE_STORED_LENGTH, 80,
  761.         PANEL_LAYOUT, PANEL_HORIZONTAL,
  762.         PANEL_READ_ONLY, FALSE,
  763.         PANEL_NOTIFY_PROC, DurationMinsTextFieldHandler,
  764.         NULL);
  765.     return obj;
  766. }
  767.  
  768. /*
  769.  * Create object `Minutes' in the specified instance.
  770.  */
  771. Xv_opaque
  772. QuoteMaker_baseWindow_Minutes_create(QuoteMaker_baseWindow_objects *ip, Xv_opaque owner)
  773. {
  774.     Xv_opaque    obj;
  775.     
  776.     obj = xv_create(owner, PANEL_MESSAGE,
  777.         XV_KEY_DATA, INSTANCE, ip,
  778.         XV_X, 160,
  779.         XV_Y, 75,
  780.         PANEL_ITEM_COLOR, gcm_color_index("black"),
  781.         PANEL_LABEL_STRING, "m.",
  782.         PANEL_LABEL_BOLD, FALSE,
  783.         NULL);
  784.     return obj;
  785. }
  786.  
  787. /*
  788.  * Create object `DurationSecsTextField' in the specified instance.
  789.  */
  790. Xv_opaque
  791. QuoteMaker_baseWindow_DurationSecsTextField_create(QuoteMaker_baseWindow_objects *ip, Xv_opaque owner)
  792. {
  793.     extern Panel_setting    DurationSecsTextFieldHandler(Panel_item, Event *);
  794.     Xv_opaque    obj;
  795.     
  796.     obj = xv_create(owner, PANEL_TEXT,
  797.         XV_KEY_DATA, INSTANCE, ip,
  798.         XV_X, 182,
  799.         XV_Y, 75,
  800.         PANEL_VALUE_DISPLAY_LENGTH, 4,
  801.         PANEL_VALUE_STORED_LENGTH, 80,
  802.         PANEL_LAYOUT, PANEL_HORIZONTAL,
  803.         PANEL_READ_ONLY, FALSE,
  804.         PANEL_NOTIFY_PROC, DurationSecsTextFieldHandler,
  805.         NULL);
  806.     return obj;
  807. }
  808.  
  809. /*
  810.  * Create object `Seconds' in the specified instance.
  811.  */
  812. Xv_opaque
  813. QuoteMaker_baseWindow_Seconds_create(QuoteMaker_baseWindow_objects *ip, Xv_opaque owner)
  814. {
  815.     Xv_opaque    obj;
  816.     
  817.     obj = xv_create(owner, PANEL_MESSAGE,
  818.         XV_KEY_DATA, INSTANCE, ip,
  819.         XV_X, 234,
  820.         XV_Y, 75,
  821.         PANEL_ITEM_COLOR, gcm_color_index("black"),
  822.         PANEL_LABEL_STRING, "s.",
  823.         PANEL_LABEL_BOLD, FALSE,
  824.         NULL);
  825.     return obj;
  826. }
  827.  
  828. /*
  829.  * Create object `ShowQuoteWindowButton' in the specified instance.
  830.  */
  831. Xv_opaque
  832. QuoteMaker_baseWindow_ShowQuoteWindowButton_create(QuoteMaker_baseWindow_objects *ip, Xv_opaque owner)
  833. {
  834.     extern void        ShowQuoteWindowButtonHandler(Panel_item, Event *);
  835.     Xv_opaque    obj;
  836.     
  837.     obj = xv_create(owner, PANEL_BUTTON,
  838.         XV_KEY_DATA, INSTANCE, ip,
  839.         XV_X, 269,
  840.         XV_Y, 80,
  841.         PANEL_LABEL_WIDTH, 167,
  842.         PANEL_LABEL_STRING, "   Show Quote Window",
  843.         PANEL_NOTIFY_PROC, ShowQuoteWindowButtonHandler,
  844.         NULL);
  845.     return obj;
  846. }
  847.  
  848. /*
  849.  * Create object `EstimateDurationButton' in the specified instance.
  850.  */
  851. Xv_opaque
  852. QuoteMaker_baseWindow_EstimateDurationButton_create(QuoteMaker_baseWindow_objects *ip, Xv_opaque owner)
  853. {
  854.     extern void        EstimateDurationNotifyHandler(Panel_item, Event *);
  855.     Xv_opaque    obj;
  856.     
  857.     obj = xv_create(owner, PANEL_BUTTON,
  858.         XV_KEY_DATA, INSTANCE, ip,
  859.         XV_X, 112,
  860.         XV_Y, 100,
  861.         PANEL_LABEL_STRING, "Estimate Duration",
  862.         PANEL_NOTIFY_PROC, EstimateDurationNotifyHandler,
  863.         NULL);
  864.     return obj;
  865. }
  866.  
  867. /*
  868.  * Create object `HideQuoteWindowButton' in the specified instance.
  869.  */
  870. Xv_opaque
  871. QuoteMaker_baseWindow_HideQuoteWindowButton_create(QuoteMaker_baseWindow_objects *ip, Xv_opaque owner)
  872. {
  873.     extern void        HideQuoteWindowButtonHandler(Panel_item, Event *);
  874.     Xv_opaque    obj;
  875.     
  876.     obj = xv_create(owner, PANEL_BUTTON,
  877.         XV_KEY_DATA, INSTANCE, ip,
  878.         XV_X, 269,
  879.         XV_Y, 109,
  880.         PANEL_LABEL_WIDTH, 167,
  881.         PANEL_LABEL_STRING, "   Hide Quote Window",
  882.         PANEL_NOTIFY_PROC, HideQuoteWindowButtonHandler,
  883.         NULL);
  884.     return obj;
  885. }
  886.  
  887. /*
  888.  * Create object `HIdeQuoteWindowAfterPlayingEditMessage1' in the specified instance.
  889.  */
  890. Xv_opaque
  891. QuoteMaker_baseWindow_HIdeQuoteWindowAfterPlayingEditMessage1_create(QuoteMaker_baseWindow_objects *ip, Xv_opaque owner)
  892. {
  893.     Xv_opaque    obj;
  894.     
  895.     obj = xv_create(owner, PANEL_MESSAGE,
  896.         XV_KEY_DATA, INSTANCE, ip,
  897.         XV_X, 16,
  898.         XV_Y, 128,
  899.         PANEL_ITEM_COLOR, gcm_color_index("black"),
  900.         PANEL_LABEL_STRING, "Hide Quote Window",
  901.         PANEL_LABEL_BOLD, TRUE,
  902.         NULL);
  903.     return obj;
  904. }
  905.  
  906. /*
  907.  * Create object `HideQuoteWindowAfterPlayingEditSetting' in the specified instance.
  908.  */
  909. Xv_opaque
  910. QuoteMaker_baseWindow_HideQuoteWindowAfterPlayingEditSetting_create(QuoteMaker_baseWindow_objects *ip, Xv_opaque owner)
  911. {
  912.     extern void        HideQuoteWindowAfterPlayingEditSettingHandler(Panel_item, int, Event *);
  913.     Xv_opaque    obj;
  914.     
  915.     obj = xv_create(owner, PANEL_CHOICE,
  916.         XV_KEY_DATA, INSTANCE, ip,
  917.         XV_X, 160,
  918.         XV_Y, 132,
  919.         PANEL_CHOICE_NROWS, 1,
  920.         PANEL_LAYOUT, PANEL_HORIZONTAL,
  921.         PANEL_CHOOSE_NONE, FALSE,
  922.         PANEL_NOTIFY_PROC, HideQuoteWindowAfterPlayingEditSettingHandler,
  923.         PANEL_CHOICE_STRINGS,
  924.             "NO",
  925.             "YES",
  926.             NULL,
  927.         NULL);
  928.     return obj;
  929. }
  930.  
  931. /*
  932.  * Create object `IconifyQuoteWindowButton' in the specified instance.
  933.  */
  934. Xv_opaque
  935. QuoteMaker_baseWindow_IconifyQuoteWindowButton_create(QuoteMaker_baseWindow_objects *ip, Xv_opaque owner)
  936. {
  937.     extern void        IconifyQuoteWindowButtonHandler(Panel_item, Event *);
  938.     Xv_opaque    obj;
  939.     
  940.     obj = xv_create(owner, PANEL_BUTTON,
  941.         XV_KEY_DATA, INSTANCE, ip,
  942.         XV_X, 269,
  943.         XV_Y, 138,
  944.         PANEL_LABEL_WIDTH, 167,
  945.         PANEL_LABEL_STRING, "  Iconify Quote Window",
  946.         PANEL_NOTIFY_PROC, IconifyQuoteWindowButtonHandler,
  947.         NULL);
  948.     return obj;
  949. }
  950.  
  951. /*
  952.  * Create object `HideQuoteWindowAfterPlayingEditMessage2' in the specified instance.
  953.  */
  954. Xv_opaque
  955. QuoteMaker_baseWindow_HideQuoteWindowAfterPlayingEditMessage2_create(QuoteMaker_baseWindow_objects *ip, Xv_opaque owner)
  956. {
  957.     Xv_opaque    obj;
  958.     
  959.     obj = xv_create(owner, PANEL_MESSAGE,
  960.         XV_KEY_DATA, INSTANCE, ip,
  961.         XV_X, 20,
  962.         XV_Y, 144,
  963.         PANEL_ITEM_COLOR, gcm_color_index("black"),
  964.         PANEL_LABEL_STRING, "After Playing Edit",
  965.         PANEL_LABEL_BOLD, TRUE,
  966.         NULL);
  967.     return obj;
  968. }
  969.  
  970. /*
  971.  * Create object `addButton' in the specified instance.
  972.  */
  973. Xv_opaque
  974. QuoteMaker_baseWindow_addButton_create(QuoteMaker_baseWindow_objects *ip, Xv_opaque owner)
  975. {
  976.     extern void        AddSelection(Panel_item, Event *);
  977.     Xv_opaque    obj;
  978.     
  979.     obj = xv_create(owner, PANEL_BUTTON,
  980.         XV_KEY_DATA, INSTANCE, ip,
  981.         XV_X, 32,
  982.         XV_Y, 184,
  983.         PANEL_LABEL_STRING, "      Add      ",
  984.         PANEL_NOTIFY_PROC, AddSelection,
  985.         NULL);
  986.     return obj;
  987. }
  988.  
  989. /*
  990.  * Create object `modifyButton' in the specified instance.
  991.  */
  992. Xv_opaque
  993. QuoteMaker_baseWindow_modifyButton_create(QuoteMaker_baseWindow_objects *ip, Xv_opaque owner)
  994. {
  995.     extern void        ModifySelection(Panel_item, Event *);
  996.     Xv_opaque    obj;
  997.     
  998.     obj = xv_create(owner, PANEL_BUTTON,
  999.         XV_KEY_DATA, INSTANCE, ip,
  1000.         XV_X, 130,
  1001.         XV_Y, 184,
  1002.         PANEL_LABEL_STRING, " Update Edit  ",
  1003.         PANEL_NOTIFY_PROC, ModifySelection,
  1004.         NULL);
  1005.     return obj;
  1006. }
  1007.  
  1008. /*
  1009.  * Create object `deleteButton' in the specified instance.
  1010.  */
  1011. Xv_opaque
  1012. QuoteMaker_baseWindow_deleteButton_create(QuoteMaker_baseWindow_objects *ip, Xv_opaque owner)
  1013. {
  1014.     extern void        DeleteSelection(Panel_item, Event *);
  1015.     Xv_opaque    obj;
  1016.     
  1017.     obj = xv_create(owner, PANEL_BUTTON,
  1018.         XV_KEY_DATA, INSTANCE, ip,
  1019.         XV_X, 240,
  1020.         XV_Y, 184,
  1021.         PANEL_LABEL_STRING, "    Delete    ",
  1022.         PANEL_NOTIFY_PROC, DeleteSelection,
  1023.         NULL);
  1024.     return obj;
  1025. }
  1026.  
  1027. /*
  1028.  * Create object `deleteAllButton' in the specified instance.
  1029.  */
  1030. Xv_opaque
  1031. QuoteMaker_baseWindow_deleteAllButton_create(QuoteMaker_baseWindow_objects *ip, Xv_opaque owner)
  1032. {
  1033.     extern void        DeleteAllSelections(Panel_item, Event *);
  1034.     Xv_opaque    obj;
  1035.     
  1036.     obj = xv_create(owner, PANEL_BUTTON,
  1037.         XV_KEY_DATA, INSTANCE, ip,
  1038.         XV_X, 337,
  1039.         XV_Y, 184,
  1040.         PANEL_LABEL_STRING, " Delete All ",
  1041.         PANEL_NOTIFY_PROC, DeleteAllSelections,
  1042.         NULL);
  1043.     return obj;
  1044. }
  1045.  
  1046. /*
  1047.  * Initialize an instance of object `infoPopup'.
  1048.  */
  1049. QuoteMaker_infoPopup_objects *
  1050. QuoteMaker_infoPopup_objects_initialize(QuoteMaker_infoPopup_objects *ip, Xv_opaque owner)
  1051. {
  1052.     if (!ip && !(ip = (QuoteMaker_infoPopup_objects *) calloc(1, sizeof (QuoteMaker_infoPopup_objects))))
  1053.         return (QuoteMaker_infoPopup_objects *) NULL;
  1054.     if (!ip->infoPopup)
  1055.         ip->infoPopup = QuoteMaker_infoPopup_infoPopup_create(ip, owner);
  1056.     if (!ip->infoControlPanel)
  1057.         ip->infoControlPanel = QuoteMaker_infoPopup_infoControlPanel_create(ip, ip->infoPopup);
  1058.     if (!ip->appNameMessage)
  1059.         ip->appNameMessage = QuoteMaker_infoPopup_appNameMessage_create(ip, ip->infoControlPanel);
  1060.     if (!ip->appVersionMessage)
  1061.         ip->appVersionMessage = QuoteMaker_infoPopup_appVersionMessage_create(ip, ip->infoControlPanel);
  1062.     if (!ip->appDescriptionMessage)
  1063.         ip->appDescriptionMessage = QuoteMaker_infoPopup_appDescriptionMessage_create(ip, ip->infoControlPanel);
  1064.     if (!ip->appDescription2Message)
  1065.         ip->appDescription2Message = QuoteMaker_infoPopup_appDescription2Message_create(ip, ip->infoControlPanel);
  1066.     if (!ip->developerMessage)
  1067.         ip->developerMessage = QuoteMaker_infoPopup_developerMessage_create(ip, ip->infoControlPanel);
  1068.     if (!ip->modsMessage)
  1069.         ip->modsMessage = QuoteMaker_infoPopup_modsMessage_create(ip, ip->infoControlPanel);
  1070.     if (!ip->copyrightMessage)
  1071.         ip->copyrightMessage = QuoteMaker_infoPopup_copyrightMessage_create(ip, ip->infoControlPanel);
  1072.     if (!ip->copyright2Message)
  1073.         ip->copyright2Message = QuoteMaker_infoPopup_copyright2Message_create(ip, ip->infoControlPanel);
  1074.     if (!ip->copyright3Message)
  1075.         ip->copyright3Message = QuoteMaker_infoPopup_copyright3Message_create(ip, ip->infoControlPanel);
  1076.     if (!ip->moreInfoMessage)
  1077.         ip->moreInfoMessage = QuoteMaker_infoPopup_moreInfoMessage_create(ip, ip->infoControlPanel);
  1078.     return ip;
  1079. }
  1080.  
  1081. /*
  1082.  * Create object `infoPopup' in the specified instance.
  1083.  */
  1084. Xv_opaque
  1085. QuoteMaker_infoPopup_infoPopup_create(QuoteMaker_infoPopup_objects *ip, Xv_opaque owner)
  1086. {
  1087.     Xv_opaque    obj;
  1088.     
  1089.     obj = xv_create(owner, FRAME_CMD,
  1090.         XV_KEY_DATA, INSTANCE, ip,
  1091.         XV_WIDTH, 500,
  1092.         XV_HEIGHT, 316,
  1093.         XV_LABEL, "QuoteMaker Info",
  1094.         XV_SHOW, FALSE,
  1095.         FRAME_SHOW_FOOTER, TRUE,
  1096.         FRAME_SHOW_RESIZE_CORNER, TRUE,
  1097.         FRAME_CMD_PUSHPIN_IN, FALSE,
  1098.         NULL);
  1099.     gcm_initialize_colors(obj, "light gray", NULL);
  1100.     xv_set(xv_get(obj, FRAME_CMD_PANEL), WIN_SHOW, FALSE, NULL);
  1101.     return obj;
  1102. }
  1103.  
  1104. /*
  1105.  * Create object `infoControlPanel' in the specified instance.
  1106.  */
  1107. Xv_opaque
  1108. QuoteMaker_infoPopup_infoControlPanel_create(QuoteMaker_infoPopup_objects *ip, Xv_opaque owner)
  1109. {
  1110.     Xv_opaque    obj;
  1111.     
  1112.     obj = xv_create(owner, PANEL,
  1113.         XV_KEY_DATA, INSTANCE, ip,
  1114.         XV_X, 15,
  1115.         XV_Y, 15,
  1116.         XV_WIDTH, 472,
  1117.         XV_HEIGHT, 285,
  1118.         WIN_BORDER, TRUE,
  1119.         NULL);
  1120.     gcm_initialize_colors(obj, "Light Gray", NULL);
  1121.     return obj;
  1122. }
  1123.  
  1124. /*
  1125.  * Create object `appNameMessage' in the specified instance.
  1126.  */
  1127. Xv_opaque
  1128. QuoteMaker_infoPopup_appNameMessage_create(QuoteMaker_infoPopup_objects *ip, Xv_opaque owner)
  1129. {
  1130.     Xv_opaque    obj;
  1131.     
  1132.     obj = xv_create(owner, PANEL_MESSAGE,
  1133.         XV_KEY_DATA, INSTANCE, ip,
  1134.         XV_X, 192,
  1135.         XV_Y, 20,
  1136.         PANEL_LABEL_STRING, "QuoteMaker",
  1137.         PANEL_LABEL_BOLD, TRUE,
  1138.         NULL);
  1139.     return obj;
  1140. }
  1141.  
  1142. /*
  1143.  * Create object `appVersionMessage' in the specified instance.
  1144.  */
  1145. Xv_opaque
  1146. QuoteMaker_infoPopup_appVersionMessage_create(QuoteMaker_infoPopup_objects *ip, Xv_opaque owner)
  1147. {
  1148.     Xv_opaque    obj;
  1149.     
  1150.     obj = xv_create(owner, PANEL_MESSAGE,
  1151.         XV_KEY_DATA, INSTANCE, ip,
  1152.         XV_X, 200,
  1153.         XV_Y, 40,
  1154.         PANEL_LABEL_STRING, "Version 2.13",
  1155.         PANEL_LABEL_BOLD, FALSE,
  1156.         NULL);
  1157.     return obj;
  1158. }
  1159.  
  1160. /*
  1161.  * Create object `appDescriptionMessage' in the specified instance.
  1162.  */
  1163. Xv_opaque
  1164. QuoteMaker_infoPopup_appDescriptionMessage_create(QuoteMaker_infoPopup_objects *ip, Xv_opaque owner)
  1165. {
  1166.     Xv_opaque    obj;
  1167.     
  1168.     obj = xv_create(owner, PANEL_MESSAGE,
  1169.         XV_KEY_DATA, INSTANCE, ip,
  1170.         XV_X, 112,
  1171.         XV_Y, 70,
  1172.         PANEL_LABEL_STRING, "Text annotation application for use with",
  1173.         PANEL_LABEL_BOLD, FALSE,
  1174.         NULL);
  1175.     return obj;
  1176. }
  1177.  
  1178. /*
  1179.  * Create object `appDescription2Message' in the specified instance.
  1180.  */
  1181. Xv_opaque
  1182. QuoteMaker_infoPopup_appDescription2Message_create(QuoteMaker_infoPopup_objects *ip, Xv_opaque owner)
  1183. {
  1184.     Xv_opaque    obj;
  1185.     
  1186.     obj = xv_create(owner, PANEL_MESSAGE,
  1187.         XV_KEY_DATA, INSTANCE, ip,
  1188.         XV_X, 80,
  1189.         XV_Y, 90,
  1190.         PANEL_LABEL_STRING, "the MAEstro Multimedia Authoring Environment",
  1191.         PANEL_LABEL_BOLD, FALSE,
  1192.         NULL);
  1193.     return obj;
  1194. }
  1195.  
  1196. /*
  1197.  * Create object `developerMessage' in the specified instance.
  1198.  */
  1199. Xv_opaque
  1200. QuoteMaker_infoPopup_developerMessage_create(QuoteMaker_infoPopup_objects *ip, Xv_opaque owner)
  1201. {
  1202.     Xv_opaque    obj;
  1203.     
  1204.     obj = xv_create(owner, PANEL_MESSAGE,
  1205.         XV_KEY_DATA, INSTANCE, ip,
  1206.         XV_X, 168,
  1207.         XV_Y, 122,
  1208.         PANEL_LABEL_STRING, "Developed by Derek Lai",
  1209.         PANEL_LABEL_BOLD, FALSE,
  1210.         NULL);
  1211.     return obj;
  1212. }
  1213.  
  1214. /*
  1215.  * Create object `modsMessage' in the specified instance.
  1216.  */
  1217. Xv_opaque
  1218. QuoteMaker_infoPopup_modsMessage_create(QuoteMaker_infoPopup_objects *ip, Xv_opaque owner)
  1219. {
  1220.     Xv_opaque    obj;
  1221.     
  1222.     obj = xv_create(owner, PANEL_MESSAGE,
  1223.         XV_KEY_DATA, INSTANCE, ip,
  1224.         XV_X, 28,
  1225.         XV_Y, 142,
  1226.         PANEL_LABEL_STRING, "(based on an application written by Al Sargent and George Drapeau)",
  1227.         PANEL_LABEL_BOLD, FALSE,
  1228.         NULL);
  1229.     return obj;
  1230. }
  1231.  
  1232. /*
  1233.  * Create object `copyrightMessage' in the specified instance.
  1234.  */
  1235. Xv_opaque
  1236. QuoteMaker_infoPopup_copyrightMessage_create(QuoteMaker_infoPopup_objects *ip, Xv_opaque owner)
  1237. {
  1238.     Xv_opaque    obj;
  1239.     
  1240.     obj = xv_create(owner, PANEL_MESSAGE,
  1241.         XV_KEY_DATA, INSTANCE, ip,
  1242.         XV_X, 8,
  1243.         XV_Y, 168,
  1244.         PANEL_LABEL_STRING, "Copyright (C) 1990, 1991, 1992 Libraries and Information Resources (L&IR)",
  1245.         PANEL_LABEL_BOLD, FALSE,
  1246.         NULL);
  1247.     return obj;
  1248. }
  1249.  
  1250. /*
  1251.  * Create object `copyright2Message' in the specified instance.
  1252.  */
  1253. Xv_opaque
  1254. QuoteMaker_infoPopup_copyright2Message_create(QuoteMaker_infoPopup_objects *ip, Xv_opaque owner)
  1255. {
  1256.     Xv_opaque    obj;
  1257.     
  1258.     obj = xv_create(owner, PANEL_MESSAGE,
  1259.         XV_KEY_DATA, INSTANCE, ip,
  1260.         XV_X, 176,
  1261.         XV_Y, 194,
  1262.         PANEL_LABEL_STRING, "Stanford University",
  1263.         PANEL_LABEL_BOLD, FALSE,
  1264.         NULL);
  1265.     return obj;
  1266. }
  1267.  
  1268. /*
  1269.  * Create object `copyright3Message' in the specified instance.
  1270.  */
  1271. Xv_opaque
  1272. QuoteMaker_infoPopup_copyright3Message_create(QuoteMaker_infoPopup_objects *ip, Xv_opaque owner)
  1273. {
  1274.     Xv_opaque    obj;
  1275.     
  1276.     obj = xv_create(owner, PANEL_MESSAGE,
  1277.         XV_KEY_DATA, INSTANCE, ip,
  1278.         XV_X, 176,
  1279.         XV_Y, 214,
  1280.         PANEL_LABEL_STRING, "Stanford, California",
  1281.         PANEL_LABEL_BOLD, FALSE,
  1282.         NULL);
  1283.     return obj;
  1284. }
  1285.  
  1286. /*
  1287.  * Create object `moreInfoMessage' in the specified instance.
  1288.  */
  1289. Xv_opaque
  1290. QuoteMaker_infoPopup_moreInfoMessage_create(QuoteMaker_infoPopup_objects *ip, Xv_opaque owner)
  1291. {
  1292.     Xv_opaque    obj;
  1293.     
  1294.     obj = xv_create(owner, PANEL_MESSAGE,
  1295.         XV_KEY_DATA, INSTANCE, ip,
  1296.         XV_X, 84,
  1297.         XV_Y, 246,
  1298.         PANEL_LABEL_STRING, "For more info, contact maestro@sioux.stanford.edu",
  1299.         PANEL_LABEL_BOLD, FALSE,
  1300.         NULL);
  1301.     return obj;
  1302. }
  1303.  
  1304. /*
  1305.  * Initialize an instance of object `textWindowPopup'.
  1306.  */
  1307. QuoteMaker_textWindowPopup_objects *
  1308. QuoteMaker_textWindowPopup_objects_initialize(QuoteMaker_textWindowPopup_objects *ip, Xv_opaque owner)
  1309. {
  1310.     if (!ip && !(ip = (QuoteMaker_textWindowPopup_objects *) calloc(1, sizeof (QuoteMaker_textWindowPopup_objects))))
  1311.         return (QuoteMaker_textWindowPopup_objects *) NULL;
  1312.     if (!ip->textWindowPopup)
  1313.         ip->textWindowPopup = QuoteMaker_textWindowPopup_textWindowPopup_create(ip, owner);
  1314.     if (!ip->mainTextPane)
  1315.         ip->mainTextPane = QuoteMaker_textWindowPopup_mainTextPane_create(ip, ip->textWindowPopup);
  1316.     return ip;
  1317. }
  1318.  
  1319. /*
  1320.  * Create object `textWindowPopup' in the specified instance.
  1321.  */
  1322. Xv_opaque
  1323. QuoteMaker_textWindowPopup_textWindowPopup_create(QuoteMaker_textWindowPopup_objects *ip, Xv_opaque owner)
  1324. {
  1325.     extern Notify_value    TextWindowPopupEventHandler(Xv_window, Event *, Notify_arg, Notify_event_type);
  1326.     Xv_opaque    obj;
  1327.     
  1328.     obj = xv_create(owner, FRAME_CMD,
  1329.         XV_KEY_DATA, INSTANCE, ip,
  1330.         XV_WIDTH, 600,
  1331.         XV_HEIGHT, 565,
  1332.         XV_LABEL, "QuoteMaker: No Current Document",
  1333.         XV_SHOW, FALSE,
  1334.         FRAME_SHOW_FOOTER, TRUE,
  1335.         FRAME_SHOW_RESIZE_CORNER, TRUE,
  1336.         FRAME_CMD_PUSHPIN_IN, FALSE,
  1337.         NULL);
  1338.     xv_set(obj, WIN_CONSUME_EVENTS,
  1339.         WIN_MOUSE_BUTTONS,
  1340.         LOC_MOVE,
  1341.         LOC_DRAG,
  1342.         LOC_WINENTER,
  1343.         LOC_WINEXIT,
  1344.         WIN_ASCII_EVENTS,
  1345.         WIN_LEFT_KEYS,
  1346.         WIN_RIGHT_KEYS,
  1347.         WIN_TOP_KEYS,
  1348.         NULL, NULL);
  1349.     notify_interpose_event_func(obj,
  1350.         (Notify_func) TextWindowPopupEventHandler, NOTIFY_SAFE);
  1351.     xv_set(xv_get(obj, FRAME_CMD_PANEL), WIN_SHOW, FALSE, NULL);
  1352.     return obj;
  1353. }
  1354.  
  1355. /*
  1356.  * Create object `mainTextPane' in the specified instance.
  1357.  */
  1358. Xv_opaque
  1359. QuoteMaker_textWindowPopup_mainTextPane_create(QuoteMaker_textWindowPopup_objects *ip, Xv_opaque owner)
  1360. {
  1361.     extern Notify_value    TextPaneEventHandler(Xv_window, Event *, Notify_arg, Notify_event_type);
  1362.     Xv_opaque    obj;
  1363.     
  1364.     obj = xv_create(owner, TEXTSW,
  1365.         XV_KEY_DATA, INSTANCE, ip,
  1366.         XV_X, 0,
  1367.         XV_Y, 0,
  1368.         XV_WIDTH, WIN_EXTEND_TO_EDGE,
  1369.         XV_HEIGHT, WIN_EXTEND_TO_EDGE,
  1370.         OPENWIN_SHOW_BORDERS, TRUE,
  1371.         TEXTSW_BROWSING, TRUE,
  1372.         TEXTSW_DISABLE_LOAD, TRUE,
  1373.         NULL);
  1374.     gcm_initialize_colors(obj, "white", "black");
  1375.     xv_set(textsw_first(obj), WIN_CONSUME_EVENTS,
  1376.         WIN_MOUSE_BUTTONS,
  1377.         LOC_MOVE,
  1378.         LOC_DRAG,
  1379.         LOC_WINENTER,
  1380.         LOC_WINEXIT,
  1381.         WIN_ASCII_EVENTS,
  1382.         WIN_LEFT_KEYS,
  1383.         WIN_RIGHT_KEYS,
  1384.         WIN_TOP_KEYS,
  1385.         NULL, NULL);
  1386.     notify_interpose_event_func(textsw_first(obj),
  1387.         (Notify_func) TextPaneEventHandler, NOTIFY_SAFE);
  1388.     return obj;
  1389. }
  1390.  
  1391. /*
  1392.  * Initialize an instance of object `QuoteWindowSpecificationsPopup'.
  1393.  */
  1394. QuoteMaker_QuoteWindowSpecificationsPopup_objects *
  1395. QuoteMaker_QuoteWindowSpecificationsPopup_objects_initialize(QuoteMaker_QuoteWindowSpecificationsPopup_objects *ip, Xv_opaque owner)
  1396. {
  1397.     if (!ip && !(ip = (QuoteMaker_QuoteWindowSpecificationsPopup_objects *) calloc(1, sizeof (QuoteMaker_QuoteWindowSpecificationsPopup_objects))))
  1398.         return (QuoteMaker_QuoteWindowSpecificationsPopup_objects *) NULL;
  1399.     if (!ip->QuoteWindowSpecificationsPopup)
  1400.         ip->QuoteWindowSpecificationsPopup = QuoteMaker_QuoteWindowSpecificationsPopup_QuoteWindowSpecificationsPopup_create(ip, owner);
  1401.     if (!ip->controls7)
  1402.         ip->controls7 = QuoteMaker_QuoteWindowSpecificationsPopup_controls7_create(ip, ip->QuoteWindowSpecificationsPopup);
  1403.     if (!ip->EditNumberColonMessage)
  1404.         ip->EditNumberColonMessage = QuoteMaker_QuoteWindowSpecificationsPopup_EditNumberColonMessage_create(ip, ip->controls7);
  1405.     if (!ip->EditNumberMessage)
  1406.         ip->EditNumberMessage = QuoteMaker_QuoteWindowSpecificationsPopup_EditNumberMessage_create(ip, ip->controls7);
  1407.     if (!ip->controls5)
  1408.         ip->controls5 = QuoteMaker_QuoteWindowSpecificationsPopup_controls5_create(ip, ip->QuoteWindowSpecificationsPopup);
  1409.     if (!ip->LocationLabelMessage)
  1410.         ip->LocationLabelMessage = QuoteMaker_QuoteWindowSpecificationsPopup_LocationLabelMessage_create(ip, ip->controls5);
  1411.     if (!ip->LocationMessage)
  1412.         ip->LocationMessage = QuoteMaker_QuoteWindowSpecificationsPopup_LocationMessage_create(ip, ip->controls5);
  1413.     if (!ip->SizeLabelMessage)
  1414.         ip->SizeLabelMessage = QuoteMaker_QuoteWindowSpecificationsPopup_SizeLabelMessage_create(ip, ip->controls5);
  1415.     if (!ip->SizeMessage)
  1416.         ip->SizeMessage = QuoteMaker_QuoteWindowSpecificationsPopup_SizeMessage_create(ip, ip->controls5);
  1417.     if (!ip->controls8)
  1418.         ip->controls8 = QuoteMaker_QuoteWindowSpecificationsPopup_controls8_create(ip, ip->QuoteWindowSpecificationsPopup);
  1419.     if (!ip->FontFamilyHeaderMessage)
  1420.         ip->FontFamilyHeaderMessage = QuoteMaker_QuoteWindowSpecificationsPopup_FontFamilyHeaderMessage_create(ip, ip->controls8);
  1421.     if (!ip->FontStyleHeaderMessage)
  1422.         ip->FontStyleHeaderMessage = QuoteMaker_QuoteWindowSpecificationsPopup_FontStyleHeaderMessage_create(ip, ip->controls8);
  1423.     if (!ip->FontFamilyList)
  1424.         ip->FontFamilyList = QuoteMaker_QuoteWindowSpecificationsPopup_FontFamilyList_create(ip, ip->controls8);
  1425.     if (!ip->FontStyleList)
  1426.         ip->FontStyleList = QuoteMaker_QuoteWindowSpecificationsPopup_FontStyleList_create(ip, ip->controls8);
  1427.     if (!ip->FontSizeTextField)
  1428.         ip->FontSizeTextField = QuoteMaker_QuoteWindowSpecificationsPopup_FontSizeTextField_create(ip, ip->controls8);
  1429.     if (!ip->controls6)
  1430.         ip->controls6 = QuoteMaker_QuoteWindowSpecificationsPopup_controls6_create(ip, ip->QuoteWindowSpecificationsPopup);
  1431.     if (!ip->QTWSpecsDoneButton)
  1432.         ip->QTWSpecsDoneButton = QuoteMaker_QuoteWindowSpecificationsPopup_QTWSpecsDoneButton_create(ip, ip->controls6);
  1433.     return ip;
  1434. }
  1435.  
  1436. /*
  1437.  * Create object `QuoteWindowSpecificationsPopup' in the specified instance.
  1438.  */
  1439. Xv_opaque
  1440. QuoteMaker_QuoteWindowSpecificationsPopup_QuoteWindowSpecificationsPopup_create(QuoteMaker_QuoteWindowSpecificationsPopup_objects *ip, Xv_opaque owner)
  1441. {
  1442.     Xv_opaque    obj;
  1443.     
  1444.     obj = xv_create(owner, FRAME_CMD,
  1445.         XV_KEY_DATA, INSTANCE, ip,
  1446.         XV_WIDTH, 400,
  1447.         XV_HEIGHT, 402,
  1448.         XV_LABEL, "Quote Window Specifications Panel",
  1449.         XV_SHOW, FALSE,
  1450.         FRAME_SHOW_FOOTER, TRUE,
  1451.         FRAME_SHOW_RESIZE_CORNER, TRUE,
  1452.         FRAME_CMD_PUSHPIN_IN, FALSE,
  1453.         NULL);
  1454.     gcm_initialize_colors(obj, "Light Gray", NULL);
  1455.     xv_set(xv_get(obj, FRAME_CMD_PANEL), WIN_SHOW, FALSE, NULL);
  1456.     return obj;
  1457. }
  1458.  
  1459. /*
  1460.  * Create object `controls7' in the specified instance.
  1461.  */
  1462. Xv_opaque
  1463. QuoteMaker_QuoteWindowSpecificationsPopup_controls7_create(QuoteMaker_QuoteWindowSpecificationsPopup_objects *ip, Xv_opaque owner)
  1464. {
  1465.     Xv_opaque    obj;
  1466.     
  1467.     obj = xv_create(owner, PANEL,
  1468.         XV_KEY_DATA, INSTANCE, ip,
  1469.         XV_X, 12,
  1470.         XV_Y, 12,
  1471.         XV_WIDTH, 376,
  1472.         XV_HEIGHT, 48,
  1473.         WIN_BORDER, TRUE,
  1474.         NULL);
  1475.     gcm_initialize_colors(obj, "Light Gray", NULL);
  1476.     return obj;
  1477. }
  1478.  
  1479. /*
  1480.  * Create object `EditNumberColonMessage' in the specified instance.
  1481.  */
  1482. Xv_opaque
  1483. QuoteMaker_QuoteWindowSpecificationsPopup_EditNumberColonMessage_create(QuoteMaker_QuoteWindowSpecificationsPopup_objects *ip, Xv_opaque owner)
  1484. {
  1485.     Xv_opaque    obj;
  1486.     
  1487.     obj = xv_create(owner, PANEL_MESSAGE,
  1488.         XV_KEY_DATA, INSTANCE, ip,
  1489.         XV_X, 36,
  1490.         XV_Y, 17,
  1491.         PANEL_LABEL_STRING, "Edit Number :",
  1492.         PANEL_LABEL_BOLD, TRUE,
  1493.         NULL);
  1494.     return obj;
  1495. }
  1496.  
  1497. /*
  1498.  * Create object `EditNumberMessage' in the specified instance.
  1499.  */
  1500. Xv_opaque
  1501. QuoteMaker_QuoteWindowSpecificationsPopup_EditNumberMessage_create(QuoteMaker_QuoteWindowSpecificationsPopup_objects *ip, Xv_opaque owner)
  1502. {
  1503.     Xv_opaque    obj;
  1504.     
  1505.     obj = xv_create(owner, PANEL_MESSAGE,
  1506.         XV_KEY_DATA, INSTANCE, ip,
  1507.         XV_X, 156,
  1508.         XV_Y, 17,
  1509.         PANEL_LABEL_STRING, "None",
  1510.         PANEL_LABEL_BOLD, FALSE,
  1511.         NULL);
  1512.     return obj;
  1513. }
  1514.  
  1515. /*
  1516.  * Create object `controls5' in the specified instance.
  1517.  */
  1518. Xv_opaque
  1519. QuoteMaker_QuoteWindowSpecificationsPopup_controls5_create(QuoteMaker_QuoteWindowSpecificationsPopup_objects *ip, Xv_opaque owner)
  1520. {
  1521.     Xv_opaque    obj;
  1522.     
  1523.     obj = xv_create(owner, PANEL,
  1524.         XV_KEY_DATA, INSTANCE, ip,
  1525.         XV_X, 12,
  1526.         XV_Y, 73,
  1527.         XV_WIDTH, 376,
  1528.         XV_HEIGHT, 47,
  1529.         WIN_BORDER, TRUE,
  1530.         NULL);
  1531.     gcm_initialize_colors(obj, "Light Gray", NULL);
  1532.     return obj;
  1533. }
  1534.  
  1535. /*
  1536.  * Create object `LocationLabelMessage' in the specified instance.
  1537.  */
  1538. Xv_opaque
  1539. QuoteMaker_QuoteWindowSpecificationsPopup_LocationLabelMessage_create(QuoteMaker_QuoteWindowSpecificationsPopup_objects *ip, Xv_opaque owner)
  1540. {
  1541.     Xv_opaque    obj;
  1542.     
  1543.     obj = xv_create(owner, PANEL_MESSAGE,
  1544.         XV_KEY_DATA, INSTANCE, ip,
  1545.         XV_X, 36,
  1546.         XV_Y, 16,
  1547.         PANEL_LABEL_STRING, "Location :",
  1548.         PANEL_LABEL_BOLD, TRUE,
  1549.         NULL);
  1550.     return obj;
  1551. }
  1552.  
  1553. /*
  1554.  * Create object `LocationMessage' in the specified instance.
  1555.  */
  1556. Xv_opaque
  1557. QuoteMaker_QuoteWindowSpecificationsPopup_LocationMessage_create(QuoteMaker_QuoteWindowSpecificationsPopup_objects *ip, Xv_opaque owner)
  1558. {
  1559.     Xv_opaque    obj;
  1560.     
  1561.     obj = xv_create(owner, PANEL_MESSAGE,
  1562.         XV_KEY_DATA, INSTANCE, ip,
  1563.         XV_X, 112,
  1564.         XV_Y, 16,
  1565.         PANEL_LABEL_BOLD, FALSE,
  1566.         NULL);
  1567.     return obj;
  1568. }
  1569.  
  1570. /*
  1571.  * Create object `SizeLabelMessage' in the specified instance.
  1572.  */
  1573. Xv_opaque
  1574. QuoteMaker_QuoteWindowSpecificationsPopup_SizeLabelMessage_create(QuoteMaker_QuoteWindowSpecificationsPopup_objects *ip, Xv_opaque owner)
  1575. {
  1576.     Xv_opaque    obj;
  1577.     
  1578.     obj = xv_create(owner, PANEL_MESSAGE,
  1579.         XV_KEY_DATA, INSTANCE, ip,
  1580.         XV_X, 216,
  1581.         XV_Y, 16,
  1582.         PANEL_LABEL_STRING, "Size :",
  1583.         PANEL_LABEL_BOLD, TRUE,
  1584.         NULL);
  1585.     return obj;
  1586. }
  1587.  
  1588. /*
  1589.  * Create object `SizeMessage' in the specified instance.
  1590.  */
  1591. Xv_opaque
  1592. QuoteMaker_QuoteWindowSpecificationsPopup_SizeMessage_create(QuoteMaker_QuoteWindowSpecificationsPopup_objects *ip, Xv_opaque owner)
  1593. {
  1594.     Xv_opaque    obj;
  1595.     
  1596.     obj = xv_create(owner, PANEL_MESSAGE,
  1597.         XV_KEY_DATA, INSTANCE, ip,
  1598.         XV_X, 260,
  1599.         XV_Y, 16,
  1600.         PANEL_LABEL_BOLD, FALSE,
  1601.         NULL);
  1602.     return obj;
  1603. }
  1604.  
  1605. /*
  1606.  * Create object `controls8' in the specified instance.
  1607.  */
  1608. Xv_opaque
  1609. QuoteMaker_QuoteWindowSpecificationsPopup_controls8_create(QuoteMaker_QuoteWindowSpecificationsPopup_objects *ip, Xv_opaque owner)
  1610. {
  1611.     Xv_opaque    obj;
  1612.     
  1613.     obj = xv_create(owner, PANEL,
  1614.         XV_KEY_DATA, INSTANCE, ip,
  1615.         XV_X, 12,
  1616.         XV_Y, 134,
  1617.         XV_WIDTH, 376,
  1618.         XV_HEIGHT, 193,
  1619.         WIN_BORDER, TRUE,
  1620.         NULL);
  1621.     gcm_initialize_colors(obj, "Light Gray", NULL);
  1622.     return obj;
  1623. }
  1624.  
  1625. /*
  1626.  * Create object `FontFamilyHeaderMessage' in the specified instance.
  1627.  */
  1628. Xv_opaque
  1629. QuoteMaker_QuoteWindowSpecificationsPopup_FontFamilyHeaderMessage_create(QuoteMaker_QuoteWindowSpecificationsPopup_objects *ip, Xv_opaque owner)
  1630. {
  1631.     Xv_opaque    obj;
  1632.     
  1633.     obj = xv_create(owner, PANEL_MESSAGE,
  1634.         XV_KEY_DATA, INSTANCE, ip,
  1635.         XV_X, 60,
  1636.         XV_Y, 14,
  1637.         PANEL_LABEL_STRING, "Font Family",
  1638.         PANEL_LABEL_BOLD, TRUE,
  1639.         NULL);
  1640.     return obj;
  1641. }
  1642.  
  1643. /*
  1644.  * Create object `FontStyleHeaderMessage' in the specified instance.
  1645.  */
  1646. Xv_opaque
  1647. QuoteMaker_QuoteWindowSpecificationsPopup_FontStyleHeaderMessage_create(QuoteMaker_QuoteWindowSpecificationsPopup_objects *ip, Xv_opaque owner)
  1648. {
  1649.     Xv_opaque    obj;
  1650.     
  1651.     obj = xv_create(owner, PANEL_MESSAGE,
  1652.         XV_KEY_DATA, INSTANCE, ip,
  1653.         XV_X, 240,
  1654.         XV_Y, 14,
  1655.         PANEL_LABEL_STRING, "Font Style",
  1656.         PANEL_LABEL_BOLD, TRUE,
  1657.         NULL);
  1658.     return obj;
  1659. }
  1660.  
  1661. /*
  1662.  * Create object `FontFamilyList' in the specified instance.
  1663.  */
  1664. Xv_opaque
  1665. QuoteMaker_QuoteWindowSpecificationsPopup_FontFamilyList_create(QuoteMaker_QuoteWindowSpecificationsPopup_objects *ip, Xv_opaque owner)
  1666. {
  1667.     extern int        FontFamilyNotifyHandler(Panel_item, char *, Xv_opaque, Panel_list_op, Event *, int);
  1668.     Xv_opaque    obj;
  1669.     
  1670.     obj = xv_create(owner, PANEL_LIST,
  1671.         XV_KEY_DATA, INSTANCE, ip,
  1672.         XV_X, 20,
  1673.         XV_Y, 35,
  1674.         PANEL_LIST_WIDTH, 135,
  1675.         PANEL_LIST_DISPLAY_ROWS, 5,
  1676.         PANEL_LAYOUT, PANEL_HORIZONTAL,
  1677.         PANEL_READ_ONLY, TRUE,
  1678.         PANEL_CHOOSE_ONE, TRUE,
  1679.         PANEL_CHOOSE_NONE, FALSE,
  1680.         PANEL_NOTIFY_PROC, FontFamilyNotifyHandler,
  1681.         NULL);
  1682.     return obj;
  1683. }
  1684.  
  1685. /*
  1686.  * Create object `FontStyleList' in the specified instance.
  1687.  */
  1688. Xv_opaque
  1689. QuoteMaker_QuoteWindowSpecificationsPopup_FontStyleList_create(QuoteMaker_QuoteWindowSpecificationsPopup_objects *ip, Xv_opaque owner)
  1690. {
  1691.     extern int        FontStyleNotifyHandler(Panel_item, char *, Xv_opaque, Panel_list_op, Event *, int);
  1692.     Xv_opaque    obj;
  1693.     
  1694.     obj = xv_create(owner, PANEL_LIST,
  1695.         XV_KEY_DATA, INSTANCE, ip,
  1696.         XV_X, 195,
  1697.         XV_Y, 35,
  1698.         PANEL_LIST_WIDTH, 135,
  1699.         PANEL_LIST_DISPLAY_ROWS, 5,
  1700.         PANEL_LAYOUT, PANEL_HORIZONTAL,
  1701.         PANEL_READ_ONLY, TRUE,
  1702.         PANEL_CHOOSE_ONE, TRUE,
  1703.         PANEL_CHOOSE_NONE, FALSE,
  1704.         PANEL_NOTIFY_PROC, FontStyleNotifyHandler,
  1705.         NULL);
  1706.     return obj;
  1707. }
  1708.  
  1709. /*
  1710.  * Create object `FontSizeTextField' in the specified instance.
  1711.  */
  1712. Xv_opaque
  1713. QuoteMaker_QuoteWindowSpecificationsPopup_FontSizeTextField_create(QuoteMaker_QuoteWindowSpecificationsPopup_objects *ip, Xv_opaque owner)
  1714. {
  1715.     extern Panel_setting    FontSizeNotifyHandler(Panel_item, Event *);
  1716.     Xv_opaque    obj;
  1717.     
  1718.     obj = xv_create(owner, PANEL_NUMERIC_TEXT,
  1719.         XV_KEY_DATA, INSTANCE, ip,
  1720.         XV_X, 106,
  1721.         XV_Y, 160,
  1722.         PANEL_VALUE_DISPLAY_LENGTH, 8,
  1723.         PANEL_VALUE_STORED_LENGTH, 80,
  1724.         PANEL_LABEL_STRING, "Font Size :",
  1725.         PANEL_LAYOUT, PANEL_HORIZONTAL,
  1726.         PANEL_MAX_VALUE, 100,
  1727.         PANEL_MIN_VALUE, 0,
  1728.         PANEL_VALUE, 0,
  1729.         PANEL_READ_ONLY, FALSE,
  1730.         PANEL_NOTIFY_PROC, FontSizeNotifyHandler,
  1731.         NULL);
  1732.     return obj;
  1733. }
  1734.  
  1735. /*
  1736.  * Create object `controls6' in the specified instance.
  1737.  */
  1738. Xv_opaque
  1739. QuoteMaker_QuoteWindowSpecificationsPopup_controls6_create(QuoteMaker_QuoteWindowSpecificationsPopup_objects *ip, Xv_opaque owner)
  1740. {
  1741.     Xv_opaque    obj;
  1742.     
  1743.     obj = xv_create(owner, PANEL,
  1744.         XV_KEY_DATA, INSTANCE, ip,
  1745.         XV_X, 12,
  1746.         XV_Y, 341,
  1747.         XV_WIDTH, 376,
  1748.         XV_HEIGHT, 45,
  1749.         WIN_BORDER, TRUE,
  1750.         NULL);
  1751.     gcm_initialize_colors(obj, "Light Gray", NULL);
  1752.     return obj;
  1753. }
  1754.  
  1755. /*
  1756.  * Create object `QTWSpecsDoneButton' in the specified instance.
  1757.  */
  1758. Xv_opaque
  1759. QuoteMaker_QuoteWindowSpecificationsPopup_QTWSpecsDoneButton_create(QuoteMaker_QuoteWindowSpecificationsPopup_objects *ip, Xv_opaque owner)
  1760. {
  1761.     extern void        QTWSpecsDoneButtonHandler(Panel_item, Event *);
  1762.     Xv_opaque    obj;
  1763.     
  1764.     obj = xv_create(owner, PANEL_BUTTON,
  1765.         XV_KEY_DATA, INSTANCE, ip,
  1766.         XV_X, 153,
  1767.         XV_Y, 12,
  1768.         PANEL_LABEL_STRING, "   Done   ",
  1769.         PANEL_NOTIFY_PROC, QTWSpecsDoneButtonHandler,
  1770.         NULL);
  1771.     return obj;
  1772. }
  1773.  
  1774. /*
  1775.  * Initialize an instance of object `quotedTextBaseWindow'.
  1776.  */
  1777. QuoteMaker_quotedTextBaseWindow_objects *
  1778. QuoteMaker_quotedTextBaseWindow_objects_initialize(QuoteMaker_quotedTextBaseWindow_objects *ip, Xv_opaque owner)
  1779. {
  1780.     if (!ip && !(ip = (QuoteMaker_quotedTextBaseWindow_objects *) calloc(1, sizeof (QuoteMaker_quotedTextBaseWindow_objects))))
  1781.         return (QuoteMaker_quotedTextBaseWindow_objects *) NULL;
  1782.     if (!ip->quotedTextBaseWindow)
  1783.         ip->quotedTextBaseWindow = QuoteMaker_quotedTextBaseWindow_quotedTextBaseWindow_create(ip, owner);
  1784.     if (!ip->quotedTextPane)
  1785.         ip->quotedTextPane = QuoteMaker_quotedTextBaseWindow_quotedTextPane_create(ip, ip->quotedTextBaseWindow);
  1786.     return ip;
  1787. }
  1788.  
  1789. /*
  1790.  * Create object `quotedTextBaseWindow' in the specified instance.
  1791.  */
  1792. Xv_opaque
  1793. QuoteMaker_quotedTextBaseWindow_quotedTextBaseWindow_create(QuoteMaker_quotedTextBaseWindow_objects *ip, Xv_opaque owner)
  1794. {
  1795.     Xv_opaque    obj;
  1796.     Xv_opaque        quotedTextBaseWindow_image;
  1797.     static unsigned short    quotedTextBaseWindow_bits[] = {
  1798. #include "./icons/QuotedTextWindow.icon"
  1799.     };
  1800.     
  1801.     quotedTextBaseWindow_image = xv_create(XV_NULL, SERVER_IMAGE,
  1802.         SERVER_IMAGE_DEPTH, 1,
  1803.         SERVER_IMAGE_BITS, quotedTextBaseWindow_bits,
  1804.         XV_WIDTH, 64,
  1805.         XV_HEIGHT, 64,
  1806.         NULL);
  1807.     obj = xv_create(owner, FRAME,
  1808.         XV_KEY_DATA, INSTANCE, ip,
  1809.         XV_WIDTH, 717,
  1810.         XV_HEIGHT, 211,
  1811.         XV_LABEL, "Quoted Text Window",
  1812.         XV_SHOW, FALSE,
  1813.         FRAME_SHOW_FOOTER, TRUE,
  1814.         FRAME_SHOW_RESIZE_CORNER, TRUE,
  1815.         FRAME_ICON, xv_create(XV_NULL, ICON,
  1816.             ICON_IMAGE, quotedTextBaseWindow_image,
  1817.             NULL),
  1818.         NULL);
  1819.     return obj;
  1820. }
  1821.  
  1822. /*
  1823.  * Create object `quotedTextPane' in the specified instance.
  1824.  */
  1825. Xv_opaque
  1826. QuoteMaker_quotedTextBaseWindow_quotedTextPane_create(QuoteMaker_quotedTextBaseWindow_objects *ip, Xv_opaque owner)
  1827. {
  1828.     Xv_opaque    obj;
  1829.     
  1830.     obj = xv_create(owner, TEXTSW,
  1831.         XV_KEY_DATA, INSTANCE, ip,
  1832.         XV_X, 0,
  1833.         XV_Y, 0,
  1834.         XV_WIDTH, WIN_EXTEND_TO_EDGE,
  1835.         XV_HEIGHT, WIN_EXTEND_TO_EDGE,
  1836.         OPENWIN_SHOW_BORDERS, TRUE,
  1837.         NULL);
  1838.     gcm_initialize_colors(obj, "white", "black");
  1839.     return obj;
  1840. }
  1841.  
  1842.